package com.monkey.model.reward;

import com.monkey.generator.model.TReward;

import java.text.SimpleDateFormat;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/2/3.
 */
public class RewardItemData {
    private int userid;
    private String item;
    private int itemtype;
    private int operater;
    private String createtime;

    public RewardItemData(TReward reward, SimpleDateFormat sdf) {
        this.userid = reward.getUserid();
        this.item = reward.getItem();
        this.itemtype = reward.getItemtype();
        this.operater = reward.getOperater();
        this.createtime = sdf.format(reward.getCreatetime());
    }

    public int getUserid() {
        return userid;
    }

    public String getItem() {
        return item;
    }

    public int getItemtype() {
        return itemtype;
    }

    public int getOperater() {
        return operater;
    }

    public String getCreatetime() {
        return createtime;
    }
}
